<?php
namespace Admin\Controller;
/**
 * 物流信息
 * User: linkwhy
 * Date: 2015/11/11
 * Time: 10:46
 */
class WuliuController extends AdminController{
    public function index(){
        $list   = $this->lists('wuliu');
        int_to_string($list);
        $this->assign('_list', $list);
        $this->meta_title = '物流信息';
        $this->display();
    }

    public function add(){
        $this->meta_title = '新增物流';
        $this->display('update');
    }

    public function edit(){
        $wuliu = M('wuliu');
        $data = $wuliu->field(true)->where(array('id' => I('get.id')))->find();
        $this->meta_title = '修改物流';
        $this->assign('data', $data);
        $this->display('update');
    }
}